home *** CD-ROM | disk | FTP | other *** search
- Path: news.tu-chemnitz.de!news
- From: hfst@hrz.tu-chemnitz.de (Hans Steffani)
- Newsgroups: comp.lang.c
- Subject: Re: Using ARGV on VAX - how?
- Date: 5 Jan 96 11:23:17 GMT
- Organization: University of Technology Chemnitz, FRG
- Message-ID: <4cj1ot$rnt@pyrrhus-f.hrz.tu-chemnitz.de>
- References: <1996Jan5.091249.1@vax.sbu.ac.uk>
- NNTP-Posting-Host: prom.hrz.tu-chemnitz.de
-
- tonyh@vax.sbu.ac.uk writes:
- >I include stdio.h and stdlib.h, the file is called myfile.c :
-
- >main (int argc, char *argv[])
- >{
- > if (argv != 2) {
-
- mybe you meant
- if (argc != 2) {
-
- > printf("you forgot to enter your name");
- > exit(1);
- > }
- > printf("Hello %s", argv[1]);
- >}
-
- h.f.s.
- --
- Hans Friedrich Steffani
- Institut fuer Elektrische Maschinen und Antriebe
- TU Chemnitz-Zwickau
- e-mail: hans.steffani@e-technik.tu-chemnitz.de
-